package org.jeecg.modules.friends.store.entity;

import java.util.Date;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * MomentsReviewEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(
    chain = true
)
@EqualsAndHashCode(
    callSuper = false
)
@FluentMybatis(
    table = "moments_review",
    schema = "make_friends"
)
public class MomentsReviewEntity extends RichEntity {
  private static final long serialVersionUID = 1L;

  /**
   */
  @TableId("id")
  private Long id;

  /**
   */
  @TableField(
      value = "add_time",
      insert = "now()"
  )
  private Date addTime;

  /**
   */
  @TableField(
      value = "update_time",
      insert = "now()",
      update = "now()"
  )
  private Date updateTime;

  /**
   * @人 已读未读，1已读
   */
  @TableField("at_is_read")
  private Boolean atIsRead;

  /**
   * 被@的人，被回复人
   */
  @TableField("at_user_id")
  private Long atUserId;

  /**
   * 被@的人
   */
  @TableField("at_user_nick_name")
  private String atUserNickName;

  /**
   * 评论内容
   */
  @TableField("content")
  private String content;

  /**
   * 动态发表人 ，已读未读，1已读
   */
  @TableField("is_read")
  private Boolean isRead;

  /**
   * 动态ID
   */
  @TableField("moments_id")
  private Long momentsId;

  /**
   * 发表动态人ID
   */
  @TableField("publish_user_id")
  private Long publishUserId;

  /**
   * 评论人ID
   */
  @TableField("user_id")
  private Long userId;

  /**
   * 评论人名称
   */
  @TableField("user_nick_name")
  private String userNickName;

  @Override
  public final Class entityClass() {
    return MomentsReviewEntity.class;
  }
}
